<?php

/**
* 
 * 教师口
 * 函数说明
 * 取仪器Getyiqi
 * 取管理者Getguanlizhe
 * 取仪器使用Getyiqishiyong
 * 取实验报告shiyanbaogao
 * 
*/

class Controllerjiaowuzhongxin extends GetLoad
{

	public function index(){
		$data[]=array();
		$this->load("Model/class");
		$this->load("Model/name");
		$class=new ModelClass();
		$namezhuan=new Modelnamezhuanhua();
		$name_id=$namezhuan->getname($_COOKIE['name'])['name_id'];

		$banji=$class->getclass($name_id);
		foreach ($banji as  $banjixi) {

			$data['banji'][] = array(
				'class' => $namezhuan->getclass_id($banjixi['class'])['name'],
				'id'    => $banjixi['class']
			);

		
		}

		$this->view("view/jiaowuzhongxin",$data);



	}
}